#!/usr/bin/node

const log = console.log,
      fs = require('fs'),
      filename = process.argv[2] || __filename;

if(process.argv.length!==3){
  log('Incorrect command line parameters');
  process.exit(1);
}

try{
  log(fs.statSync(filename));
}catch(e){
  console.error(e.message);
  process.exit(2);
}

